package com.dyna.domain.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("闪购物品")
public class ItemFlashPurchaseReq {

    @ApiModelProperty("物品id")
    @NotNull(message = "购买物品不能为空")
    private Long itemId;

    @ApiModelProperty("闪购数量")
    @Min(value = 1, message = "购买物品数量不能小于1")
    private Long count;

}
